﻿<%@ Page Language="C#" MasterPageFile="~/Master.Master" AutoEventWireup="true" CodeBehind="TR_Lecturers.aspx.cs" Inherits="KPIS.GERP.GHRMS.APP.App_UI.Forms.TR_Lecturers" %>
<%@ Register Src="../Controls/user.ascx" TagName="user" TagPrefix="uc1" %>

<asp:Content ID="ContentTRLecturers" runat="server" ContentPlaceHolderID="ContentPlaceHolder1">
    <link href="../../Styles/CssClass.css" rel="stylesheet" type="text/css" />
    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">        
            <script type="text/javascript">
                function onTextChange(sender) {
                    if (sender.get_value() == "") {
                        sender.set_text("");
                    }
                }                                
            </script>       
    </telerik:RadCodeBlock>
    
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="TRLecturers">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="TRLecturers" LoadingPanelID="RadAjaxLoadingPanel2" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>    
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" BackgroundPosition="None" Skin="Outlook">
    </telerik:RadAjaxLoadingPanel>
    
    <asp:Panel ID="TRLecturers" runat="server">
        <table width="980px" cellpadding="0" cellspacing="0">
        <tr>
            <td valign="top" style="width: 951px">
            </td>
        </tr>
        <tr>
            <td>
                <div class="moduleDivSlim1000x450">
                <div class="moduleDivBottom1000">
                    <table align="center" style="height: 26px; width: 980px">
                    <tr>
                        <td align="left" class="tableHeader">
                            วิทยากร
                        </td>
                    </tr>
                    </table>
                    
                    <table align="center" style="height:390px; width: 938px;">
                    <tr>
                        <td>
                         <asp:Panel ID="tblTRLecturers" runat="server" align="center" Visible="true" ScrollBars="Auto"  
                                        Height="390px"  Width="980px">

                             <telerik:RadGrid ID="grdTRLecturers" runat="server" AllowAutomaticDeletes="True" AllowFilteringByColumn="True" 
                                            AllowMultiRowEdit="True" AllowMultiRowSelection="True" AllowPaging="True" AllowSorting="True" 
                                            AutoGenerateColumns="False" EnableAJAX="True" EnableAJAXLoadingTemplate="True"
                                            GridLines="None" Height="380px" Width="965px" Skin="Outlook"
                                            OnItemCommand="grdTRLecturers_ItemCommand">
                                 <MasterTableView AllowMultiColumnSorting="True" CellSpacing="-1" ClientDataKeyNames="trainer_seq" 
                                                CommandItemDisplay="Top" DataKeyNames="trainer_seq" NoMasterRecordsText="&lt; ไม่มีข้อมูล &gt;">
                                     <CommandItemTemplate>
                                         <table align="left">
                                             <tr>
                                                 <td align="left">
                                                     <asp:LinkButton ID="AddInstitute" runat="server" CommandName="AddData" Visible="true">
                                                         <img style="border:0px;vertical-align:middle;" alt=""
                                                         src="../Images/Buttons/AddRecord.gif" /> เพิ่มข้อมูลวิทยากร
                                                      </asp:LinkButton>
                                                   </td>
                                                   <td align="right">
                                                       
                                                   </td>
                                                   </tr>                                                   
                                                   
                                                </table>
                                                </CommandItemTemplate>
                                                <Columns>
                                                    <telerik:GridTemplateColumn  
                                                        HeaderStyle-Width="20px"                                                             
                                                        HeaderStyle-HorizontalAlign="Center"
                                                        ShowFilterIcon="false"
                                                        AllowFiltering="false">                                                        
                                                        <ItemTemplate>
                                                            <table>
                                                                <asp:ImageButton 
                                                                    ID="cmdEdit" 
                                                                    runat="server" 
                                                                    CommandName="DataEdit"
                                                                    OnClientClick="javascript: return confirm('แก้ไขข้อมูลที่เลือก?');"
                                                                    ImageUrl="../Images/Buttons/Edit.gif" 
                                                                    ToolTip="แก้ไขรายการ" 
                                                                    width="20px" />
                                                            </table>
                                                        </ItemTemplate>
                                                        <HeaderStyle HorizontalAlign="Center" Width="40px" />
                                                    </telerik:GridTemplateColumn> 
                                                    <telerik:GridTemplateColumn  
                                                        HeaderStyle-Width="20px"                                                             
                                                        HeaderStyle-HorizontalAlign="Center" 
                                                        ShowFilterIcon="false"
                                                        AllowFiltering="false">
                                                        <ItemTemplate>
                                                            <table>
                                                                <asp:ImageButton 
                                                                    ID="cmdDelete" 
                                                                    runat="server" 
                                                                    CommandName="Delete"
                                                                    OnClientClick="javascript: return confirm('ลบข้อมูลที่เลือก?');"
                                                                    ImageUrl="../Images/Buttons/Delete.gif" 
                                                                    ToolTip="ลบรายการ" 
                                                                    width="20px" />
                                                            </table>
                                                        </ItemTemplate>
                                                        <HeaderStyle HorizontalAlign="Center" Width="40px" />
                                                    </telerik:GridTemplateColumn> 
                                                    <telerik:GridBoundColumn 
                                                        AutoPostBackOnFilter="true" 
                                                        CurrentFilterFunction="Contains" 
                                                        DataField="trainer_seq" 
                                                        DataType="System.Int32"
                                                        FilterControlWidth="100%" 
                                                        HeaderText="รหัส" 
                                                        ShowFilterIcon="false" 
                                                        UniqueName="trainer_seq"
                                                        Visible="false">
                                                        <HeaderStyle HorizontalAlign="Center" Width="150px" />
                                                        <ItemStyle HorizontalAlign="Center" />
                                                    </telerik:GridBoundColumn>
                                                    <telerik:GridBoundColumn 
                                                        AutoPostBackOnFilter="true" 
                                                        CurrentFilterFunction="Contains" 
                                                        DataField="trainer_name" 
                                                        FilterControlWidth="100%" 
                                                        HeaderText="ชื่อวิทยากร" 
                                                        ShowFilterIcon="false" 
                                                        UniqueName="trainer_name"> 
                                                        <HeaderStyle HorizontalAlign="Center" />                                                          
                                                        <ItemStyle HorizontalAlign="Left" />
                                                    </telerik:GridBoundColumn>
                                                    
                                                    <telerik:GridBoundColumn
                                                        HeaderText="ที่อยู่ที่ติดต่อได้" 
                                                        DataField="mas_address"
                                                        UniqueName="mas_address" 
                                                        ShowFilterIcon="false"
                                                        AutoPostBackOnFilter="true" 
                                                        CurrentFilterFunction="Contains" 
                                                        FilterControlWidth="100%"
                                                        Visible="true">
                                                        <HeaderStyle HorizontalAlign="Center" />                                                          
                                                        <ItemStyle HorizontalAlign="Left" />
                                                    </telerik:GridBoundColumn>
                                                    <telerik:GridBoundColumn
                                                        DataField="postal_code"
                                                        UniqueName="postal_code"
                                                        ShowFilterIcon="false"
                                                        Visible="False">
                                                    </telerik:GridBoundColumn>
                                                    <telerik:GridBoundColumn
                                                        HeaderText="ที่อยู่" 
                                                        DataField="address"
                                                        UniqueName="address" 
                                                        ShowFilterIcon="false"
                                                        AutoPostBackOnFilter="true" 
                                                        CurrentFilterFunction="Contains"
                                                        FilterControlWidth="100%" 
                                                        Visible="false">
                                                        <HeaderStyle HorizontalAlign="Center" />                                                          
                                                        <ItemStyle HorizontalAlign="Left" />
                                                    </telerik:GridBoundColumn>
                                                    <telerik:GridBoundColumn
                                                        HeaderText="เบอร์โทรศัพท์" 
                                                        DataField="tel"
                                                        UniqueName="tel"
                                                        ShowFilterIcon="false"
                                                        AutoPostBackOnFilter="true" 
                                                        CurrentFilterFunction="Contains"
                                                        FilterControlWidth="100%"  
                                                        Visible="true">
                                                     <HeaderStyle HorizontalAlign="Center" Width="100px"/>                                                          
                                                    <ItemStyle HorizontalAlign="Left" />
                                                    </telerik:GridBoundColumn>
                                                    <telerik:GridBoundColumn 
                                                        DataField="citizen"
                                                        UniqueName="citizen" 
                                                        Visible="False">
                                                    </telerik:GridBoundColumn>
                                                    <telerik:GridBoundColumn 
                                                        DataField="email"
                                                        UniqueName="email" 
                                                        Visible="False">
                                                    </telerik:GridBoundColumn>
                                                    <telerik:GridBoundColumn 
                                                        DataField="website"
                                                        UniqueName="website" 
                                                        Visible="False">
                                                    </telerik:GridBoundColumn>                                                        
                                                    <telerik:GridBoundColumn
                                                        DataField="active"
                                                        UniqueName="active" 
                                                        Visible="False">
                                                    </telerik:GridBoundColumn>
                                                    <telerik:GridBoundColumn
                                                        DataField="first_name_local"
                                                        UniqueName="first_name_local" 
                                                        Visible="False">
                                                    </telerik:GridBoundColumn>
                                                    <telerik:GridBoundColumn
                                                        DataField="last_name_local"
                                                        UniqueName="last_name_local" 
                                                        Visible="False">
                                                    </telerik:GridBoundColumn>
                                                    <telerik:GridBoundColumn
                                                        DataField="name_prefix_seq"
                                                        UniqueName="name_prefix_seq" 
                                                        Visible="False">
                                                    </telerik:GridBoundColumn>
                                                    <telerik:GridBoundColumn
                                                        DataField="prov_seq"
                                                        UniqueName="prov_seq" 
                                                        Visible="False">
                                                   </telerik:GridBoundColumn>
                                                   <telerik:GridBoundColumn
                                                        DataField="district_seq"
                                                        UniqueName="district_seq" 
                                                        Visible="False">
                                                   </telerik:GridBoundColumn>
                                                   <telerik:GridBoundColumn
                                                        DataField="emp_seq"
                                                        UniqueName="emp_seq" 
                                                        Visible="False">
                                                   </telerik:GridBoundColumn>
                                                </Columns>
                                                 <PagerStyle Mode="NextPrevNumericAndAdvanced" />
                                            </MasterTableView>
                                            <ClientSettings AllowColumnHide="True" 
                                                AllowColumnsReorder="True" 
                                                EnableRowHoverStyle="True" 
                                                ReorderColumnsOnClient="True">
                                                <Selecting AllowRowSelect="True" EnableDragToSelectRows="true" />
                                            </ClientSettings>
                                        </telerik:RadGrid>
                            </asp:Panel>
                            <asp:Panel ID="LecturersEdit" 
                                    runat="server"
                                    Height="376px"
                                    Visible="false" 
                                    width="941px" 
                                    align="center"                                
                                    ScrollBars="Auto">
                                    <ul class="formList890px"><%--376--%>
                                         <li>
                                            <table align="center" style="width: 758px" >
                                                <tr>
                                                    <td align="left" class="tableDetailHeader" style="width: 970px">
                                                        ข้อมูลวิทยากร
                                                    </td>
                                                </tr>
                                            </table>
                                        </li>
                                        <li>
                                            <table>
                                            <tr>
                                                <td colspan="2" >
                                                    <telerik:RadTextBox ID="txtTrainerSeq" runat="server" Visible="false" Width="300px"/>
                                                </td>
                                            </tr>
                                            <tr>
                                            <td align="right" width="150px">
                                                เลขบัตรประจำตัวประชาชน :</td>
                                            <td width="300px" align="left">
                                                <telerik:RadMaskedTextBox ID="txtCitizen" 
                                                    Runat="server" 
                                                    Mask="#-####-#####-##-#" Width="150px" 
                                                    CausesValidation="True" 
                                                    TextWithLiterals="----">
                                                </telerik:RadMaskedTextBox>  
                                            </td>    
                                        </tr>
                                            <tr>  
                                                <td align="right" >
                                                    คำนำหน้าชื่อ :
                                                </td> 
                                                <td align="left">
                                                    <telerik:RadComboBox 
                                                        runat="server" 
                                                        ID="cbPrefix" 
                                                        AllowCustomText ="true" 
                                                        DataTextField="Name" 
                                                        DataValueField="Sequence" 
                                                        Filter ="Contains"
                                                        CausesValidation ="false"
                                                        OnClientTextChange = "onTextChange"
                                                        EmptyMessage = "...เลือกคำนำหน้าชื่อ..."
                                                        Width="180px" ZIndex="8000">
                                                    </telerik:RadComboBox>  
                                                    <span class="validate">*</span> 
                                                    <asp:RequiredFieldValidator 
                                                        runat="server" 
                                                        ID="RequiredFieldValidator6" 
                                                        ControlToValidate="cbPrefix"
                                                        ErrorMessage="กรุณากรอกข้อมูลคำนำหน้าชื่อ" >
                                                    </asp:RequiredFieldValidator>                                                  
                                                </td> 
                                            </tr> 
                                            <tr>                                        
                                                <td align="right" >
                                                    ชื่อ :
                                                </td>
                                                <td align="left">
                                                    <telerik:RadTextBox ID="txtName" runat="server" Width="200px"/>
                                                     <span class="validate">*</span>
                                                     <asp:RequiredFieldValidator runat="server" 
                                                        ID="RequiredFieldValidator1" 
                                                        ControlToValidate="txtName"
                                                        ErrorMessage="กรุณากรอกข้อมูลชื่อ" >
                                                    </asp:RequiredFieldValidator> 
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="right" >
                                                        นามสกุล :
                                                </td>
                                                <td align="left" colspan="2">                                                    
                                                    <telerik:RadTextBox ID="txtSerName" runat="server" Width="200px" />
                                                    <span class="validate">*</span>                                                    
                                                    <asp:RequiredFieldValidator runat="server" 
                                                        ID="RequiredFieldValidator2" 
                                                        ControlToValidate="txtSerName"
                                                        ErrorMessage="กรุณากรอกข้อมูลนามสกุล" >
                                                    </asp:RequiredFieldValidator>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="right" >
                                                     ที่อยู่ที่สามารถติดต่อได้ :
                                                </td>
                                                <td align="left">
                                                     <telerik:RadTextBox ID="txtAddress" runat="server" Width="400px" />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="right" >
                                                    จังหวัด :</td>
                                                <td align="left">
                                                    <telerik:RadComboBox 
                                                        ID="cmbProvince" 
                                                        Runat="server" 
                                                        AutoPostBack="true" 
                                                        AllowCustomText="true"  
                                                        DataTextField="prov_name" 
                                                        DataValueField="prov_seq" 
                                                        EmptyMessage="&lt; เลือกจังหวัด &gt;" 
                                                        Filter="Contains" 
                                                        OnClientTextChange="onTextChange" 
                                                        Width="250px" >
                                                    </telerik:RadComboBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="right">
                                                    ตำบล/อำเภอ :</td>
                                                <td colspan="3" >
                                                    <telerik:RadComboBox  
                                                        ID="cmbDistrict"                                                                        
                                                        Runat="server" 
                                                        AutoPostBack="true" 
                                                        AllowCustomText="true" 
                                                        DataTextField="Name" 
                                                        DataValueField="Sequence" 
                                                        EmptyMessage="&lt; เลือกตำบล/อำเภอ &gt;" 
                                                        EnableLoadOnDemand = "true"
                                                        Filter="Contains" 
                                                        OnClientTextChange="onTextChange" Width="400px" 
                                                        onitemsrequested="cmbDistrict_ItemsRequested">
                                                    </telerik:RadComboBox>
                                                </td>
                                            </tr>
                                            <%--<tr>
                                                <td align="right" style="width: 165px">
                                                    จังหวัด :
                                                </td>
                                                <td align="left">
                                                    <telerik:RadComboBox 
                                                        runat="server" 
                                                        ID="cbProvinces" 
                                                        AllowCustomText ="true" 
                                                        DataTextField="Name" 
                                                        DataValueField="Sequence"
                                                        Filter ="Contains"
                                                        AutoPostBack="true"
                                                        CausesValidation ="false"
                                                        OnClientTextChange = "onTextChange"
                                                        EmptyMessage = "... เลือกจังหวัด..."
                                                        Width="200px" 
                                                        ZIndex="8000"
                                                        onselectedindexchanged="cbProvinces_SelectedIndexChanged">
                                                    </telerik:RadComboBox>
                                                     <span class="validate">*</span> 
                                                     <asp:RequiredFieldValidator runat="server" 
                                                        ID="RequiredFieldValidator3" 
                                                        ControlToValidate="cbProvinces"
                                                        ErrorMessage="กรุณากรอกข้อมูลจังหวัด" >
                                                    </asp:RequiredFieldValidator>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="right" width="165px">
                                                    อำเภอ :
                                                </td>
                                                <td align="left">
                                                    <telerik:RadComboBox 
                                                        runat="server" 
                                                        ID="cbAmphurs" 
                                                        AllowCustomText ="true" 
                                                        DataTextField="Name" 
                                                        DataValueField="Sequence" 
                                                        Filter ="Contains"
                                                        CausesValidation ="false"
                                                        AutoPostBack="true"
                                                        OnClientTextChange = "onTextChange"
                                                        EmptyMessage = "... เลือกอำเภอ..."
                                                        Width="200px" 
                                                        ZIndex="8000" 
                                                        onselectedindexchanged="cbAmphurs_SelectedIndexChanged">
                                                    </telerik:RadComboBox>
                                                     <span class="validate">*</span> 
                                                     <asp:RequiredFieldValidator runat="server" 
                                                        ID="RequiredFieldValidator4" 
                                                        ControlToValidate="cbAmphurs"
                                                        ErrorMessage="กรุณากรอกข้อมูลอำเภอ"
                                                         >
                                                    </asp:RequiredFieldValidator>
                                                </td>
                                                </tr>
                                                <tr>                                               
                                                <td align="right" width="165px">
                                                    ตำบล :
                                                </td>
                                                <td align="left">
                                                    <telerik:RadComboBox 
                                                        runat="server" 
                                                        ID="cbDistrict" 
                                                        AllowCustomText ="true" 
                                                        DataTextField="Name" 
                                                        DataValueField="Sequence" 
                                                        Filter ="Contains"
                                                        AutoPostBack="true"
                                                        CausesValidation ="false"
                                                        OnClientTextChange = "onTextChange"
                                                        EmptyMessage = "... เลือกตำบล..."
                                                        Width="250px" 
                                                        ZIndex="8000" >
                                                    </telerik:RadComboBox>
                                                     <span class="validate">*</span> 
                                                     <asp:RequiredFieldValidator
                                                        runat="server" 
                                                        ID="RequiredFieldValidator5" 
                                                        ControlToValidate="cbDistrict"
                                                        ErrorMessage="กรุณากรอกข้อมูลตำบล" >
                                                    </asp:RequiredFieldValidator>
                                                </td>
                                            </tr>                     --%>                     
                                            <tr>
                                                <td align="right" >
                                                    รหัสไปรษณีย์ :
                                                </td>
                                                <td align="left">
                                                    <telerik:RadTextBox ID="txtPostCode" runat="server" Width="200px" />    
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="right">
                                                    โทรศัพท์ :
                                                </td>
                                                <td align="left">
                                                    <telerik:RadTextBox ID="txtTelNum" runat="server" Width="200px" />    
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="right" >
                                                    อีเมลล์ :
                                                </td>
                                                <td align="left">
                                                    <telerik:RadTextBox ID="txtEmail" runat="server" Width="200px" />    
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="right" >
                                                    เว็บไซด์ :
                                                </td>
                                                <td align="left">
                                                    <telerik:RadTextBox ID="txtWebSite" runat="server" Width="200px" />    
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="right" >
                                                    สถานะ :
                                                </td>
                                                <td align="left">
                                                    <asp:CheckBox ID="cboxStatus" runat="server" Text="พร้อมปฏิบัติงาน" />  
                                                </td>
                                            </tr>
                                            </table>                                        
                                           <%-- <table>
                                            <tr align="center">                                               
                                                <td style="width: 160px" align="left">
                                                    <asp:RadioButton 
                                                        ID="rbExperson" 
                                                        runat="server" 
                                                        Checked="true"
                                                        AutoPostBack="true"                         
                                                        Text="บุคลากรภายนอก" 
                                                        OnCheckedChanged="rbExperson_CheckedChanged"/>
                                                </td>
                                                <td align="left" style="width: 100px">
                                                    <asp:RadioButton 
                                                        ID="rbInperson" 
                                                        runat="server"
                                                        AutoPostBack="true" 
                                                        Text="บุคลากรภายใน" 
                                                        OnCheckedChanged="rbInperson_CheckedChanged"/>
                                                </td>
                                                <td>
                                                    <asp:Panel ID="AtiveEmployee" runat="server" Visible="false">                                                                                                      
                                                        <table>
                                                        <tr>
                                                            <td align="right" width="80px" >
                                                            บุคลากร :
                                                            </td>                                                           
                                                            <td align="left">
                                                                <telerik:RadComboBox ID="cbEmployeeList" Runat="server" 
                                                                        AllowCustomText="true" 
                                                                        EmptyMessage="... เลือกบุคลากร ..."
                                                                        Filter ="Contains"
                                                                        Height="300px" 
                                                                        DropDownWidth="260px"
                                                                        Width="260px"
                                                                        HighlightTemplatedItems="true"                    
                                                                        CausesValidation ="false"
                                                                        OnClientTextChange = "onTextChange"
                                                                        AutoPostBack="True">
                                                                    <HeaderTemplate>
                                                                        <table style="width: 230px" cellspacing="0" cellpadding="0">
                                                                            <tr>
                                                                                <td style="width: 90px;" align="center">
                                                                                    รหัส</td>
                                                                                <td style="width: 120px;" >
                                                                                    ชื่อ - นามสกุล</td>
                                                                            </tr>
                                                                        </table>
                                                                    </HeaderTemplate>
                                                                    <ItemTemplate>
                                                                        <table style="width: 190px" cellspacing="0" cellpadding="0">
                                                                            <tr>
                                                                                <td style="width: 90px;" align="center">
                                                                                    <%# DataBinder.Eval(Container, "Attributes['EMP_SEQ']")%>
                                                                                </td>
                                                                                <td style="width: 110px;">
                                                                                    <%# DataBinder.Eval(Container, "Attributes['EMP_NAME']")%>
                                                                                </td>
                                                                            </tr>
                                                                        </table>
                                                                    </ItemTemplate>
                                                                </telerik:RadComboBox>                                                            
                                                                 <span class="validate">*</span> 
                                                                 <asp:RequiredFieldValidator
                                                                    runat="server" 
                                                                    ID="RequiredFieldValidator7" 
                                                                    ControlToValidate="cbEmployeeList"
                                                                    ErrorMessage="กรุณากรอกข้อมูลบุคลากร" >
                                                                </asp:RequiredFieldValidator>
                                                            </td>
                                                        </tr>                                                        
                                                        </table>
                                                    </asp:Panel>
                                                </td>                                               
                                            </tr>                                           
                                            </table>
                                            <table width="600px">
                                            <tr>
                                                <td align="left">                                        
                                                    <asp:Label ID="lblError" runat="server" ForeColor="Red" Font-Size="Small" Font-Bold="true" />
                                                </td>                                     
                                            </tr>
                                            </table> --%>
                                        </li>
                                    </ul>                                                                           
                                  <table width="600px">
                                    <tr>                                    
                                    <td align="right" style="width: 321px">
                                        <asp:Button ID="btnSave" onclick="btnSave_Click" runat="server" CssClass="button" Text="บันทึก" Width="80px" />   
                                        <asp:Button ID="btnUpdate" onclick="btnUpdate_Click" runat="server" CssClass="button" Visible="false" Text="แก้ไข" Width="80px" />                         
                                    </td>
                                    <td align="left" style="width: 328px">
                                        <asp:Button ID="btnCancel" causesvalidation="False" OnClick="btnCancel_Click" runat="server" CssClass="button" Text="ยกเลิก" Width="80px" />
                                    </td>
                                    </tr>
                                </table>
                                </asp:Panel> 
                        </td>
                    </tr>
                   </table>
                </div>
                </div>
            </td>
        </tr>
        </table>
    </asp:Panel>
    

</asp:Content>